<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<form action="index.php" method="post">
    <div class="search">
        <?php
        $text = 'Nhập số sim cần tìm';
        $output = '<input name="searchword" id="mod_search_searchword" maxlength="20" alt="Nhập số sim" class="inputbox" type="text" style="width:80%;margin-left:10px;" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';

        $provider = '<select id="provider" name="provider" class="inputbox" style="width:85%;margin-left:10px">';
        $provider.='<option>Chọn mạng</option>';
        $provider.='<option id="1">Viettel</option>';
        $provider.='<option id="2">Vinafone</option>';
        $provider.='<option id="3">Mobifone</option>';
        $provider.='<option id="4">EVN</option>';
        $provider.='<option id="5">GTel</option>';
        $provider.='</select>';

        $category = '<select id="category" name="category" class="inputbox" style="width:85%;margin-left:10px">';
        $category.='<option>Chọn loại sim</option>';
        $category.='<option id="1">Sim tứ quý</option>';
        $category.='<option id="2">Sim tam hoa</option>';
        $category.='<option id="3">Sim lộc phát</option>';
        $category.='<option id="4">Sim năm sinh</option>';
        $category.='<option id="7">Số taxi-Số Vip</option>';
        $category.='<option id="8">Sim Gánh đảo</option>';
        $category.='</select>';
        $minprice = 'Giá thấp nhất';
        $minmoney = '<input name="minprice" id="mod_search_searchword" maxlength="'.$maxlength.'" alt="'.$minprice.'" class="inputbox'.$moduleclass_sfx.'" type="text" style="width:80%;margin-left:10px;" value="'.$minprice.'"  onblur="if(this.value==\'\') this.value=\''.$minprice.'\';" onfocus="if(this.value==\''.$minprice.'\') this.value=\'\';" />';
        $maxprice = 'Giá cao nhất';
        $maxmoney = '<input name="maxprice" id="mod_search_searchword" maxlength="'.$maxlength.'" alt="'.$maxprice.'" class="inputbox'.$moduleclass_sfx.'" type="text" style="width:80%;margin-left:10px;" value="'.$maxprice.'"  onblur="if(this.value==\'\') this.value=\''.$maxprice.'\';" onfocus="if(this.value==\''.$maxprice.'\') this.value=\'\';" />';
        $button = '<div align="center"><input type="submit" value="Tìm kiếm" class="button" onclick="this.form.searchword.focus();"/></div>';

        $button = '<br />'.$button;
        $provider='<br />'.$provider;
        $category='<br />'.$category;
        $minmoney='<br />'.$minmoney;
        $maxmoney='<br />'.$maxmoney;
        $output = $output.$provider.$minmoney.$maxmoney.$category.$button;
        echo $output;
        ?>
    </div>
    <input type="hidden" name="task"   value="search" />
    <input type="hidden" name="option" value="com_sim" />
</form>